package com.zyit.dao;

import com.zyit.entity.T_base_order;
import com.zyit.util.BeanRowMapper;
import com.zyit.util.DBHelp;

import java.util.List;

public class OderNoDao {
    private DBHelp dbHelp = new DBHelp();

    public List<T_base_order> findAll(String account) {
        String sql = "SELECT\n" +
                "t_base_order.account,\n" +
                "t_base_order.user_address,\n" +
                "t_base_order.amount,\n" +
                "t_base_order.order_no\n" +
                "FROM\n" +
                "t_base_order where account=?\n ";
        return dbHelp.executeQueryForList(sql,new BeanRowMapper<>(T_base_order.class),account);
    }
}
